import Base from './base'

const api = new Base()

// 修改个人信息
export const saveProfile = (params) => api.post('/user', params)
export const getProfile = () => api.get('/user')
// 登录
export const login = (code) =>
    api.postform('/auth/login', {
        code
    })

// 获取我的积分
export const getScore = () => api.get('/userScore')
export const getScoreList = () => api.get('/userScore/rank')
